package model

import (
	"gorm.io/gorm"
)

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(50);comment:用户名"`
	Password string `gorm:"type:varchar(50);comment:密码"`
}
type UserRole struct {
	gorm.Model
	Uid  int `gorm:"type:int"`
	Role int `gorm:"type:int"`
}
type Role struct {
	gorm.Model
	RoleName string `gorm:"type:varchar(50);comment:角色名"`
}
type RoleNode struct {
	gorm.Model
	Rid int `gorm:"type:int"`
	Nid int `gorm:"type:int"`
}
type Node struct {
	gorm.Model
	NodeName string `gorm:"type:varchar(50);comment:权限名"`
}
type Person struct {
	gorm.Model
	PerCode  string `gorm:"type:varchar(50);comment:工号"`
	PerName  string `gorm:"type:varchar(50);comment:配送员名"`
	PerPhone string `gorm:"type:varchar(50);comment:配送员手机号"`
}
type PerOrder struct {
	gorm.Model
	OrderCode string `gorm:"type:varchar(50);comment:编号"`
	OrderTo   string `gorm:"type:varchar(50);comment:订单用户名"`
	Pid       int    `gorm:"type:int"`
}
type PerOrderList struct {
	OrderId   int
	OrderCode string
	OrderTo   string
	PerCode   string
	PerName   string
	PerPhone  string
}
